package com.onec.service.api.dto.response.channel;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.onec.service.api.dto.response.BaseResponse;
import com.onec.service.api.enums.error.ChannelErrorEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author onec
 * 请求通道服务！通道商户信息处理
 */
@Data
@EqualsAndHashCode(callSuper=false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ChannelMerchantResp extends BaseResponse {

    private String merchantNo;

    private String status;

    private String rate;

    private String fee;


    private String totalAmount;

    private String freezeAmount;

    private String useAmount;

    private String businessNo;

    private String product;

    private String channelMerchantNo;


    public ChannelMerchantResp(int code, String message) {
        super(code, message);
    }

    public static ChannelMerchantResp respMerchantStatus(ChannelErrorEnum channelErrorEnum) {
        return new ChannelMerchantResp(channelErrorEnum.getCode(), channelErrorEnum.getMessage());
    }

}
